<?php
include "UserRepository.php";
include "EventRepository.php";
require_once "..\Entities\User.php";
require_once "..\Entities\Evento.php";

$repository  = new EventRepository();
$entityevent = new Evento();


$entityevent->SetCreatorId(1);
$entityevent->SetFechaEvento('2013-05-27');
$entityevent->SetHoraEvento('20:34');
$entityevent->SetDescripcion('Hoy es un dia de fiesta en Madrid');
$entityevent->SetUrl('www.wanadoo.com');
$entityevent->SetCounterMeGusta(0);
$entityevent->SetEventoPadre(0);
$entityevent->SetCounterYoVoy(0);

print_r($entityevent);
$evento = $repository->InsertarEvento($entityevent);

//print_r($entityuser);
//$user = $repository->InsertUser($entityuser);

//$user = $repository->DeleteUserFriend(1,4);




/*echo "hola";

$repository = new UserRepository();
$user = $repository->GetUserForLogin("mayte", "mayte");

print_r($user);
try
{
	$user = $repository->GetUserForLogin("jose", "jose");
	print_r($user);
}
catch (Exception $ex)
{
	echo $ex->getMessage();
  
}

try
{
	$user = $repository->GetUserForLogin("angel", "xxxxxxx");
	print_r($user);

}
catch (Exception $ex)
{
	echo $ex->getMessage();
}*/
?>